package tid.proyect.views;

import tid.proyect.controllers.EditImage;
import tid.proyect.md.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.view.View;

public class EditImageView extends View{

	private Bitmap bitmap = null;
	private Canvas c = new Canvas();
	
	public EditImageView(Context context) {
		super(context);
		selectBitmap();
		EditImage ei = new EditImage();
		bitmap = ei.test(bitmap);
		onDraw(c);
		
	}
	
	public void selectBitmap(){
		bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon);
	}
	
	public void onDraw(Canvas c){
		
		c.drawColor(Color.GREEN);
		c.drawBitmap(bitmap, 1, 200, null);
	}

}
